<script type="text/javascript" src="/res/third/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/res/third/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="/res/third/ueditor/lang/zh-cn/zh-cn.js"></script>
 <!-- 弹框 -->
 <div id="create"    >
	<form  class="form-horizontal" name="formName"  role="form">
	<input type="hidden"  name="id"  id="id" value="[#if wordsql??]${wordsql.id!}[/#if]"/>
	  <div class="form-group">
	    <label for="name" >名称</label>
	    <input class="form-control" id="name"  name="name" required value="[#if wordsql??]${wordsql.name!}[/#if]"/>
	  </div>
	   <div class="form-group">
	    <label for="sqlstring" >对应SQL</label>
	      <textarea style="resize:none;font-size:12px" rows="5" class="form-control" id="sqlstring"  name="sqlstring" required >[#if wordsql??]${wordsql.sqlstring!}[/#if]</textarea>
	  </div>
	  <div class="form-group">
	    <label for="descr" >SQL描述</label>
	     <script id="descr" name="descr" type="text/plain">[#if wordsql??]${wordsql.descr!}[/#if]</script>
	  </div>
	  <div class="form-group">
	    <div style="text-align: center;" >
	      <button  onclick="sub(this);"  type="button" class="btn btn-info">提交</button>
	    </div>
	  </div>
	</form>
</div>
<script type="text/javascript">
var editor;
$(function(){
	var option = {
			theme : "default",
			lang : "zh-cn",
			initialFrameWidth : 660,
			initialFrameHeight : 160,
			autoHeightEnabled : false,
			pasteplain : true,//默认纯文本格式粘贴,
			elementPathEnabled : false,
			focus : false,//初始化时不让编辑器获取焦点
			toolbars : [ [ 'fullscreen', 'source', 'undo', 'redo', 'bold',
				    'italic', 'strikethrough',
					'justifyleft', 'justifyright', 'justifycenter',
					'justifyjustify', 'rowspacingtop', 'rowspacingbottom',
					'lineheight', 'removeformat', '|', 'fontfamily',
					'fontsize', 'forecolor', 'backcolor',  'insertimage' ] ]
		};
	
	editor=UE.getEditor('descr', option);
})

</script>
